package com.lxmes.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.business.mapper.NcProductStaCostMapper;
import com.lxmes.business.domain.NcProductStaCost;
import com.lxmes.business.service.INcProductStaCostService;

/**
 * 产品工位成本Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class NcProductStaCostServiceImpl implements INcProductStaCostService 
{
    @Autowired
    private NcProductStaCostMapper ncProductStaCostMapper;

    /**
     * 查询产品工位成本
     * 
     * @param id 产品工位成本主键
     * @return 产品工位成本
     */
    @Override
    public NcProductStaCost selectNcProductStaCostById(Long id)
    {
        return ncProductStaCostMapper.selectNcProductStaCostById(id);
    }

    /**
     * 查询产品工位成本列表
     * 
     * @param ncProductStaCost 产品工位成本
     * @return 产品工位成本
     */
    @Override
    public List<NcProductStaCost> selectNcProductStaCostList(NcProductStaCost ncProductStaCost)
    {
        return ncProductStaCostMapper.selectNcProductStaCostList(ncProductStaCost);
    }

    /**
     * 新增产品工位成本
     * 
     * @param ncProductStaCost 产品工位成本
     * @return 结果
     */
    @Override
    public int insertNcProductStaCost(NcProductStaCost ncProductStaCost)
    {
        return ncProductStaCostMapper.insertNcProductStaCost(ncProductStaCost);
    }

    /**
     * 修改产品工位成本
     * 
     * @param ncProductStaCost 产品工位成本
     * @return 结果
     */
    @Override
    public int updateNcProductStaCost(NcProductStaCost ncProductStaCost)
    {
        return ncProductStaCostMapper.updateNcProductStaCost(ncProductStaCost);
    }

    /**
     * 批量删除产品工位成本
     * 
     * @param ids 需要删除的产品工位成本主键
     * @return 结果
     */
    @Override
    public int deleteNcProductStaCostByIds(Long[] ids)
    {
        return ncProductStaCostMapper.deleteNcProductStaCostByIds(ids);
    }

    /**
     * 删除产品工位成本信息
     * 
     * @param id 产品工位成本主键
     * @return 结果
     */
    @Override
    public int deleteNcProductStaCostById(Long id)
    {
        return ncProductStaCostMapper.deleteNcProductStaCostById(id);
    }
}
